
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>

<head>
    <link rel="StyleSheet" href="css/jpetstore.css" type="text/css"
          media="screen" />

    <meta name="generator"
          content="HTML Tidy for Linux/x86 (vers 1st November 2002), see www.w3.org" />
    <title>JPetStore Demo</title>
    <meta content="text/html; charset=windows-1252"
          http-equiv="Content-Type" />
    <meta http-equiv="Cache-Control" content="max-age=0" />
    <meta http-equiv="Cache-Control" content="no-cache" />
    <meta http-equiv="expires" content="0" />
    <meta http-equiv="Expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
    <meta http-equiv="Pragma" content="no-cache" />
</head>

<body>

<div id="Header">

    <div id="Logo">
        <div id="LogoContent">
            <a href="main"><img src="images/logo-topbar.gif" alt="中国"/></a>
        </div>
    </div>

    <div id="Menu">
        <div id="MenuContent">
            <a href="viewCart?account=${sessionScope.account}&username=${sessionScope.username}"><img align="middle" name="img_cart" src="images/cart.gif" /></a> <img align="middle" src="images/separator.gif" />
            <c:if test="${sessionScope.username == null}">
                <a href="ViewSignonForm">Sign In</a>
            </c:if>
            <c:if test="${sessionScope.username != null}">
                <a href="SignOut">Sign Out</a>
                <!---signOff-->
            </c:if>

            <!--分隔符-->
            <c:if test="${sessionScope.username != null}">
                <img align="middle" src="images/separator.gif" />
                <a href="ViewEditInformationForm?username=${sessionScope.username}">My Account</a>
            </c:if><img align="middle" src="images/separator.gif" />

            <c:if test="${sessionScope.username != null}">
                <a href="ViewListOrder?username=${account.username}">My Orders</a>
            </c:if>
            <c:if test="${sessionScope.username != null}">
                <img align="middle" src="images/separator.gif" />
            </c:if>
            <a href="ViewJPetStore">?</a>
        </div>
    </div>

    <div id="Search">
        <div id="SearchContent">
            <form action="searchDialog" method="post">
                <input type="text" name="keywords" size="14" /> <input type="submit"
                                                                       name="searchProducts" value="Search" />
            </form>
        </div>

    </div>

    <div id="QuickLinks">
        <a href="viewCategory?categoryId=FISH">
            <img src="images/sm_fish.gif" /></a>
        <img src="images/separator.gif" />
        <a href="viewCategory?categoryId=DOGS">
            <img src="images/sm_dogs.gif" /></a>
        <img src="images/separator.gif" />
        <a href="viewCategory?categoryId=REPTILES">
            <img src="images/sm_reptiles.gif" /></a>
        <img src="images/separator.gif" />
        <a href="viewCategory?categoryId=CATS">
            <img src="images/sm_cats.gif" /></a>
        <img src="images/separator.gif" />
        <a href="viewCategory?categoryId=BIRDS">
            <img src="images/sm_birds.gif" /></a>
    </div>

</div>
<div id="Content">
<div id="BackLink">
    <a href="main">RETURN TO MAIN</a>
</div>

<div id="Catalog">

    <h2>${sessionScope.name}</h2>

    <table>
        <tr>
            <th>Name</th>
            <th>Date</th>
            <th>Action</th>
        </tr>
        <c:forEach var="diary" items="${sessionScope.diaryList}">
            <tr>
                <td>${diary.name}</td>
                <td>${diary.date}</td>
                <td>${diary.action}</td>
            </tr>
        </c:forEach>
    </table>

</div>

<%@ include file="../common/IncludeBottom.jsp"%>


